package com.gohi.core.web.paging;

public class PagingBean {

	/** 每页开始的索引号 */
	public Integer start;
	/** 页码大小 */
	private Integer pageSize;
	/** 总记录数 */
	private Integer totalItems;

	public PagingBean(int start, int limit) {
		this.pageSize = Integer.valueOf(limit);
		this.start = Integer.valueOf(start);
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getTotalItems() {
		return totalItems;
	}

	public void setTotalItems(int totalItems) {
		this.totalItems = totalItems;

	}

	public int getFirstResult() {
		return start.intValue();
	}

}
